# 登录接口对象层
import requests


# 定义类


class Supcon_Login_Api():

    # 定义登录方法
    @classmethod
    def login(cls, jsondata):
        req = requests.post(url="http://60.170.204.207:35791/inter-api/auth/login",
                            json=jsondata)

        return req


# 测试是否好用
if __name__ == '__main__':
    jsondata = {"password": "yx87686363", "userName": "admin", "forceLogin": "false"}

    req = Supcon_Login_Api.login(jsondata)
    print("登录成功", req.json())
